package cn.smartaccount.demo.common.util;

import java.util.Collection;

/**
 * @author xuluquan
 * @date 2021-07-11 15:07
 */
public class CollectionUtils {


    public static boolean isNotEmpty(Collection<?> collection) {
        if (collection != null && collection.size() != 0) {
            return true;
        }
        return false;
    }

    public static boolean isEmpty(Collection<?> collection) {
        if (collection == null || collection.size() == 0) {
            return true;
        }
        return false;
    }

}
